/*
 * @Author: wangjing wangjin122@qq.com
 * @Date: 2024-02-22 15:12:05
 * @LastEditors: wangjing wangjin122@qq.com
 * @LastEditTime: 2024-02-22 15:25:55
 * @FilePath: \元组类型\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

let arr: [string, number] = ['aaa', 1]
let arr2: [x:string, y?:number] = ['bbb']

type first = typeof arr[1]
type length = typeof arr['length']